<?php
$this->breadcrumbs=array(
	'Inventory Items'=>array('inventory/items'),
	"{$item->code} - {$item->short_description}" => array('view','id'=>$item->id),
	'Update',
);
?>

<?php if(Yii::app()->user->hasFlash('notify')): ?>

<div class="notifyBox">
	<?php echo Yii::app()->user->getFlash('notify'); ?>
	<ul>
		<li><a href="<?php echo $this->createUrl("item/view/id/{$item->id}"); ?>">View Item</a></li>
		<li><a href="<?php echo $this->createUrl("item/create"); ?>">Add New Item</a></li>
	</ul>
</div>

<?php endif; ?>

<h2 class="pt">Update Item: <?php echo $item->code; ?></h2>

<div class="clearb"></div>

<?php echo $this->renderPartial('_formUpdate', array(
											'item' => $item,
											'itemQuantity' => $itemQuantity,
											'itemCost' => $itemCost
											)); ?>